<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>购物车</title>
<base href="<%=basePath%>">
<style>
main{
width:900px;
margin:30px auto;
}
</style>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<script type="text/javascript" src="js/bootstrap.min.js"></script>

</head>

<body>

<main>

<div class="panel panel-primary">
  <div class="panel-heading"><h2>购物清单</h2></div>
    <TABLE class="cart-list table table-striped">
		<thead>
			<tr>
				<th>商品名</th>
				<th>价格</th>
				<th>描述</th>
			</tr>
		</thead>
		<%-- <s:iterator value="Clist" id="cart">
			<tr>
				<td><s:property value="#cart.goods.goodsname" />
				<td><s:property value="#cart.goods.price" />
				<td><s:property value="#cart.goods.remark" />
				<td>
			</tr>
		</s:iterator> --%>
		<s:iterator value="Glist" id="goods">
			<tr>
				<td><s:property value="#goods.goodsname" />
				<td><s:property value="#goods.price" />
				<td><s:property value="#goods.remark" />
				<td>
			</tr>
		</s:iterator>
	</TABLE>
  </div>
  <div class="text-right"><button  class="btn btn-primary " onclick="queding()">确定提交</button></div>
  
</main>
	
</body>
<script type="text/javascript">
       function queding(){
          alert('提交订单成功！');
          window.location.href = "index.jsp";
       }
</script>
</html>
